package com.key.service;

import com.key.common.R;
import com.key.common.dto.ReceiptAssetsDTO;
import com.key.common.dto.ReceiptDTO;
import com.key.common.vo.AssetsTVO;
import com.key.entity.Assets;
import com.key.entity.ReceiptAssets;

import java.util.List;

/**
 * @author tc
 * @create 2023-02-20 10:03
 */
public interface ReceiptAssetsService {

    //依据多个资产生成新的领用订单
     R creatReceipt(List<Long> assetsCodes, ReceiptAssets receiptAssets);

    //依据单号删除
    R deleteReceiptAssets(String ReceiptNumber);

    //依据条件修改单
    R editReceiptAssets(ReceiptDTO receiptDTO);

    //依据条件搜索领用单资产
    R findReceiptAssets(ReceiptDTO receiptDTO);


    //查询可退库的领用单
    List<ReceiptAssets> findCanWithdrawalReceiptAssets();

    //查询领用订单下的资产
    List<Assets> findAssetsByReceiptAssets(ReceiptAssets receiptAssets);
    //查询领用订单下的资产
    List<AssetsTVO> findAssetsTVOByReceiptAssets(ReceiptAssets receiptAssets);

}
